#!/bin/bash

git pull
printf "更新代码完成\n"
sleep 1


docker stop group-code

docker rm group-code

docker rmi -f springboot/group-code


mvn clean package -Dmaven.test.skip=true docker:build -DdockerImageTags=6
        printf "打包完成\n"
        sleep 1

docker run -d --restart=always --name store-client6 -p 8086:8080 -v /data/logs/:/data/logs -v /data/file/:/data/file  -e "SPRING_PROFILES_ACTIVE=dev" -e "JASYPT.ENCRYPTOR.PASSWORD=123456" springboot/group-code

	printf "等待启动完成，60秒...\n"
	sleep 60